using System;
using InfoJetSoft.Service.Entity;

namespace InfoJetSoft.Service.ManagedCode
{
	/// <summary>
	/// Summary description for Solution.
	/// </summary>
	public class Solution : Microsoft.Office.Interop.InfoPath.SemiTrust.SolutionObject
	{
		private Manifest manifest = null;

		public Solution( Manifest mani )
		{
			this.manifest = mani;
		}

		public Microsoft.Office.Interop.InfoPath.SemiTrust.IXMLDOMDocument DOM 
		{ 
			get
			{
				return XMLDocument.createXMLDocument( null, this.manifest.Doc, this.manifest.NsResolver );
			}
		}

		public string URI 
		{ 
			get
			{
				return this.manifest.PublishUrl;
			}
		}

		public string Version 
		{ 
			get
			{
				return this.manifest.SolutionVersion.Value();
			}
		}

		//Unsupported
		public string PackageURL 
		{ 
			get
			{
				return "";
			}
		}

	}
}
